package com.dxx.cloud.admin.module.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

import java.math.BigDecimal;

/**
 * @author duh
 * @create 2018/12/28 14:10

 **/
@Schema(description = "修改商品采购请求体")
public class GoodsInventorySingleTypeChangeUpdateRequest {
    @Schema(description="主键",example="1")
    @NotNull
    private Integer id;

    @Schema(description="商户id",example="1")
    private Long merId;

    @Schema(description="门店id",example="1")
    private Long shopId;

    @Schema(description="商品id",example="1")
    private Integer goodsId;

    @Schema(description="活次直冻",example="活")
    private String goodsState;

    @Schema(description="商品名称",example="大螃蟹")
    private String goodsName;

    @Schema(description="商品规格id",example="1")
    private Integer goodsSizeId;

    @Schema(description="商品规格",example="规格300")
    private String unit;

    @Schema(description="皮重",example="1")
    private BigDecimal tare;

    @Schema(description="毛重",example="1")
    private BigDecimal grossWeight;

    @Schema(description="净重",example="1")
    private BigDecimal netWeight;

    @Schema(description="总件数(在有重量时传入)")
    private BigDecimal weightNumber;

    @Schema(description="水分")
    private BigDecimal waterPercent;

    @Schema(description="采购量",example="1")
    private BigDecimal number;

    @Schema(description="单价",example="1")
    private BigDecimal unitPrice;

    @Schema(description="总价",example="1.1")
    private BigDecimal totalPrice;

    @Schema(description="条形码",example="1")
    private String barCode;


    @Schema(description="支付类型:1现金 2欠账 3银行卡 4其他 5存款 11门店微信二维码 12微信客户主扫 13微信客户被扫 14微信刷脸 21门店支付宝二维码 22支付宝客户扫商户 23支付宝商户扫客户 31易收宝客户扫商户 32易收宝商户扫客户",example="1")
    private Integer payType;

    @Schema(description="供应商名称",example="供应商名称")
    private String supplyName;

    @Schema(description="经办人",example = "经办人")
    private String agent;

    @Schema(description="状态：1有效, -1 无效",example="1")
    private Integer status;

    @Schema(description="修改者",example="1")
    @JsonIgnore
    private String updater;

    @Schema(description="操作者",example="admin")
    private String operator;

    public Long getMerId() {
        return merId;
    }

    public void setMerId(Long merId) {
        this.merId = merId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsState() {
        return goodsState;
    }

    public void setGoodsState(String goodsState) {
        this.goodsState = goodsState;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsSizeId() {
        return goodsSizeId;
    }

    public void setGoodsSizeId(Integer goodsSizeId) {
        this.goodsSizeId = goodsSizeId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getTare() {
        return tare;
    }

    public void setTare(BigDecimal tare) {
        this.tare = tare;
    }

    public BigDecimal getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(BigDecimal grossWeight) {
        this.grossWeight = grossWeight;
    }

    public BigDecimal getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(BigDecimal netWeight) {
        this.netWeight = netWeight;
    }

    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getSupplyName() {
        return supplyName;
    }

    public void setSupplyName(String supplyName) {
        this.supplyName = supplyName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public BigDecimal getWaterPercent() {
        return waterPercent;
    }

    public void setWaterPercent(BigDecimal waterPercent) {
        this.waterPercent = waterPercent;
    }

    public BigDecimal getWeightNumber() {
        return weightNumber;
    }

    public void setWeightNumber(BigDecimal weightNumber) {
        this.weightNumber = weightNumber;
    }
}
